package org.example.statistics.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.example.contract.domain.Contract;

/**
 * 统计采购报对象 b_statistics_buy
 *
 * @author 小孟微信：xiaomengcode
 * @date 2024-05-31
 */
public class StatisticsBuy extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long statisticsBuyId;

    /** 合同id */
    @Excel(name = "合同id")
    private String contractId;

    /** 月份 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "月份", width = 30, dateFormat = "yyyy-MM-dd")
    private Date dateMonth;

    /** 采购金额 */
    @Excel(name = "采购金额")
    private BigDecimal buyTotalMoney;

    /** 入库金额 */
    @Excel(name = "入库金额")
    private BigDecimal mallStoreTotalMoney;

    /** 对账金额 */
    @Excel(name = "对账金额")
    private BigDecimal accountTotalMoney;

    /** 支付金额 */
    @Excel(name = "支付金额")
    private BigDecimal payTotalMoney;

    private Contract contract;

    private Long accountId;

    public Long getAccountId() {
        return accountId;
    }

    public void setAccountId(Long accountId) {
        this.accountId = accountId;
    }

    public Contract getContract() {
        return contract;
    }

    public void setContract(Contract contract) {
        this.contract = contract;
    }

    public void setStatisticsBuyId(Long statisticsBuyId)
    {
        this.statisticsBuyId = statisticsBuyId;
    }

    public Long getStatisticsBuyId()
    {
        return statisticsBuyId;
    }
    public void setContractId(String contractId)
    {
        this.contractId = contractId;
    }

    public String getContractId()
    {
        return contractId;
    }
    public void setDateMonth(Date dateMonth)
    {
        this.dateMonth = dateMonth;
    }

    public Date getDateMonth()
    {
        return dateMonth;
    }
    public void setBuyTotalMoney(BigDecimal buyTotalMoney)
    {
        this.buyTotalMoney = buyTotalMoney;
    }

    public BigDecimal getBuyTotalMoney()
    {
        return buyTotalMoney;
    }
    public void setMallStoreTotalMoney(BigDecimal mallStoreTotalMoney)
    {
        this.mallStoreTotalMoney = mallStoreTotalMoney;
    }

    public BigDecimal getMallStoreTotalMoney()
    {
        return mallStoreTotalMoney;
    }
    public void setAccountTotalMoney(BigDecimal accountTotalMoney)
    {
        this.accountTotalMoney = accountTotalMoney;
    }

    public BigDecimal getAccountTotalMoney()
    {
        return accountTotalMoney;
    }
    public void setPayTotalMoney(BigDecimal payTotalMoney)
    {
        this.payTotalMoney = payTotalMoney;
    }

    public BigDecimal getPayTotalMoney()
    {
        return payTotalMoney;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("statisticsBuyId", getStatisticsBuyId())
            .append("contractId", getContractId())
            .append("dateMonth", getDateMonth())
            .append("buyTotalMoney", getBuyTotalMoney())
            .append("mallStoreTotalMoney", getMallStoreTotalMoney())
            .append("accountTotalMoney", getAccountTotalMoney())
            .append("payTotalMoney", getPayTotalMoney())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("remark", getRemark())
            .toString();
    }
}
